package com.fan.analysis.module.preprocessing.message.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fan.analysis.common.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 与垃圾短信记录表(span_message)一一对应
 *
 * @author fan
 * @date 2021/09/20 12:56
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "span_message")
public class SpanMessageEntity extends BaseEntity implements Serializable {


    private static final long serialVersionUID = 8734468863012128303L;
    private String sendNum;
    private String recNum;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间，格式：yyyy-MM-dd HH:mm:ss")
    private Date time;

    private String content;
    private String userLocation;
}
